<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Music-Player: Player Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Music-Player
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_player.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_player-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Player Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the class <a class="el" href="class_player.html" title="Header for the class Player.">Player</a>.  
 <a href="class_player.html#details">More...</a></p>

<p><code>#include &lt;Player.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Player:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_player.png" usemap="#Player_map" alt=""/>
  <map id="Player_map" name="Player_map">
<area href="class_i_visitor.html" title="Header for the class IVisitor." alt="IVisitor" shape="rect" coords="0,0,51,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:affe0cc3cb714f6deb4e62f0c0d3f1fd8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_player.html#affe0cc3cb714f6deb4e62f0c0d3f1fd8">Player</a> ()</td></tr>
<tr class="memdesc:affe0cc3cb714f6deb4e62f0c0d3f1fd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Ctor for the <a class="el" href="class_player.html" title="Header for the class Player.">Player</a>.  <a href="#affe0cc3cb714f6deb4e62f0c0d3f1fd8"></a><br/></td></tr>
<tr class="separator:affe0cc3cb714f6deb4e62f0c0d3f1fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c80a58d8789efc3239c7629e139e544"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_player.html#a7c80a58d8789efc3239c7629e139e544">Visit</a> (<a class="el" href="class_song.html">Song</a> *song)</td></tr>
<tr class="memdesc:a7c80a58d8789efc3239c7629e139e544"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#a7c80a58d8789efc3239c7629e139e544"></a><br/></td></tr>
<tr class="separator:a7c80a58d8789efc3239c7629e139e544"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dd4a53b3256ce55e75390c3f6a09613"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_player.html#a3dd4a53b3256ce55e75390c3f6a09613">Visit</a> (<a class="el" href="class_album.html">Album</a> *album)</td></tr>
<tr class="memdesc:a3dd4a53b3256ce55e75390c3f6a09613"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>.  <a href="#a3dd4a53b3256ce55e75390c3f6a09613"></a><br/></td></tr>
<tr class="separator:a3dd4a53b3256ce55e75390c3f6a09613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac700c2869665f52e96cf80c95abc9c46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_player.html#ac700c2869665f52e96cf80c95abc9c46">Visit</a> (<a class="el" href="class_music_collection.html">MusicCollection</a> *collection)</td></tr>
<tr class="memdesc:ac700c2869665f52e96cf80c95abc9c46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit a <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>.  <a href="#ac700c2869665f52e96cf80c95abc9c46"></a><br/></td></tr>
<tr class="separator:ac700c2869665f52e96cf80c95abc9c46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_visitor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_visitor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_visitor.html">IVisitor</a></td></tr>
<tr class="memitem:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_visitor.html#aa781c060abae177e982d545c74d7d9be">~IVisitor</a> ()</td></tr>
<tr class="memdesc:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of class <a class="el" href="class_i_visitor.html" title="Header for the class IVisitor.">IVisitor</a>.  <a href="#aa781c060abae177e982d545c74d7d9be"></a><br/></td></tr>
<tr class="separator:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the class <a class="el" href="class_player.html" title="Header for the class Player.">Player</a>. </p>
<p>Represents the <a class="el" href="class_player.html" title="Header for the class Player.">Player</a> Visitor (Visitor pattern)</p>
<p>The class <a class="el" href="class_player.html" title="Header for the class Player.">Player</a> prints a <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> to std::cout. This simulates the playing of the song.</p>
<dl class="section author"><dt>Author</dt><dd>Andreas Lehner </dd></dl>
<dl class="section date"><dt>Date</dt><dd>06.12.2012 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="affe0cc3cb714f6deb4e62f0c0d3f1fd8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Player::Player </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The Ctor for the <a class="el" href="class_player.html" title="Header for the class Player.">Player</a>. </p>
<p>The CTor of a <a class="el" href="class_player.html" title="Header for the class Player.">Player</a>. Initializes the print number standing in front of every <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7c80a58d8789efc3239c7629e139e544"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Player::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_song.html">Song</a> *&#160;</td>
          <td class="paramname"><em>song</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>This Function visits Songs and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">song</td><td>The <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#a28a3bf8a80a054a1f1828ca51a1eabe1">IVisitor</a>.</p>

</div>
</div>
<a class="anchor" id="a3dd4a53b3256ce55e75390c3f6a09613"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Player::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_album.html">Album</a> *&#160;</td>
          <td class="paramname"><em>album</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<p>This Function visits Albums and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">album</td><td>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#af9bab18c18131a791e97a3cb88820e9d">IVisitor</a>.</p>

</div>
</div>
<a class="anchor" id="ac700c2869665f52e96cf80c95abc9c46"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Player::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_music_collection.html">MusicCollection</a> *&#160;</td>
          <td class="paramname"><em>collection</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit a <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>. </p>
<p>This Function visits <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a> and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collection</td><td>The <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#a6a619fad0dc4e94f836d1f6f512ccc2a">IVisitor</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_player.html">Player</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
